-
Notifications
You must be signed in to change notification settings - Fork 4
Extend billing service #567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
|
|
|
|
|
|
de1b436 to
b3b7cbe
Compare
|
|
37a5950 to
bee2705
Compare
|
f6b427e to
d952654
Compare
|
|
|
|
8e78325 to
173eeea
Compare
|
173eeea to
d318fa5
Compare
|
d318fa5 to
ebf8832
Compare
|
|
5c3ef51 to
41436b9
Compare
|
Kidswiss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small things, the rest LGTM
|
|
||
| // If no items specified, create default compute item | ||
| items := opts.Items | ||
| if len(items) == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we always inject the service?
If we have a service with multiple items we'd have to pass the service itself explicitly as well, which could lead to a lot of dupes, since most servala services will have more than one item anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we make this mandatory and configure as mandatory via kubebuilder?
| itemDescription := GetItemDescription(isAPPUiOCloud, clusterName, namespace) | ||
|
|
||
| // If no items specified, create default compute item | ||
| items := opts.Items |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In accordance with my comment bellow, this field should then be called ExtraItems istead. To make it clear we additional items to the default service item.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for extra items. Whoever is creating a BIllingService CR should add at least one item in the list.
|
|
||
| // Find oldest sent events for this product | ||
| // Only prune events with status "sent" | ||
| prunableIndices := []int{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can we get rid of entries that failed?
We might need some configuration to specify how many failed events we should keep.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should keep all of them but to make sure we don't create duplicates. If we remove the ones that were not sent we loose history and we cannot ensure that Odoo has correct data. I would be very cautious with removing events that are not yet in odoo.
mikeshootzz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @Kidswiss but the rest looks good to me. One small thing:
| - xobjectbuckets | ||
| verbs: | ||
| - get | ||
| - list | ||
| - patch | ||
| - update | ||
| - watch | ||
| - apiGroups: | ||
| - apiextensions.crossplane.io | ||
| resources: | ||
| - compositeresourcedefinitions | ||
| verbs: | ||
| - get | ||
| - list | ||
| - watch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to rebase to develop and run make generate to fix this
Summary
Checklist
/mergecomment.Component PR: vshn/component-appcat#1037